﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MyTest
{
    /// <summary>
    /// Bank 的摘要说明
    /// </summary>
    public class Bank
    {
        //定义委托
        public delegate void EventHandler(object sender, EventArgs e);
        //定义事件
        public event EventHandler ProcessTran;

        //处理事件
        public void OnProcessTran(object sender, EventArgs e)
        {
            ProcessTran(sender, e);
        }

        //触发事件
        public void Process(object sender, EventArgs e)
        {
            OnProcessTran(sender, e);
        }
    }

}
